Repository navigation
collapse the duplicate adapter tree: CLI now runs the canonical (fixed) poller code - #73
Conversation
…rt shims src/team-relay/adapters/* and src/team-relay/unified-poller.mjs were full COPIES of src/adapters/ + src/unified-poller.mjs, and they drifted: the CLI imports the team-relay paths, so the reply-target fix (#72) landed in a tree the running poller never loads. Same disease as the two webhook servers. The team-relay files are now one-line re-exports of the canonical tree, and test/single-adapter-tree.test.mjs asserts IDENTITY (===) across both import paths plus the reply fix being visible on the CLI path - a fork now fails the suite instead of shipping silently. Suite 279/279.
|
P1: PR #73 does not actually make the CLI |
|
Adversarial review complete: no merge-blocking findings. The six historical paths correctly re-export the canonical adapters and UnifiedPoller, preserving CLI imports. The identity test covers all five adapters plus the poller, and the reply-context test exercises the CLI-visible GroupMind path. Node.js CI run 279 passed. I could not submit an approval because the connected account is the PR author. |
The disease
src/team-relay/adapters/*andsrc/team-relay/unified-poller.mjswere full copies ofsrc/adapters/+src/unified-poller.mjs— and they drifted. The CLI imports the team-relay paths (bin/cli.mjs:22-23), so the reply-target work merged today (#72) landed in a tree the running poller never loads. Exactly the two-webhook-servers problem, in the poller.The fix
src/tree — both historical import paths keep working, one implementation exists.test/single-adapter-tree.test.mjsasserts identity (===) across both paths for every adapter + the poller, and that the CLI-visible adapter carries the reply-context behavior. A future fork fails the suite instead of shipping silently.Suite 279/279.
Found while executing petrus's "everybody uses IAK, no custom pollers" directive — this is the prerequisite: the product poller must actually run its own fixes before machines migrate onto it.
🤖 Generated with Claude Code